package 美团;

import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @Author Weton Li
 * @Date 2021/3/13 17:02
 */
public class Test2 {

    public void method(String str){
        String reg = "[^0-9]";
        Pattern pattern = Pattern.compile(reg);
        Matcher matcher = pattern.matcher(str);
//        System.out.println(matcher);
        System.out.println(matcher.replaceAll(""));
        String[] strings = matcher.replaceAll("").split("[a-z]");
        for (String string : strings) {
            System.out.println(string);
        }
    }

    public static void main(String[] args) {
        Test2 test2 = new Test2();
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();
//        String str = "he15l154lo87wor7l87d";
        test2.method(str);
//        System.out.println(str);
    }
}


